import Layout from '@/layout'

export default {
  path: '/practice',
  component: Layout,
  name: 'practice',
  meta: { title: '题库管理', icon: 'el-icon-setting' },

  children: [{
    // 默认的子路由
    path: 'base',
    name: 'base',
    component: () =>
      import ('@/views/practice/base'),
    // meta:控制左侧菜单
    meta: { title: '基础题库', icon: 'el-icon-user' }
  }, {
    // 默认的子路由
    path: 'choice',
    name: 'choice',
    component: () =>
      import ('@/views/practice/choice'),
    // meta:控制左侧菜单
    meta: { title: '精选题库', icon: 'el-icon-menu' }
  }, {
    // 默认的子路由
    path: 'entry',
    name: 'entry',
    component: () =>
      import ('@/views/practice/entry'),
    // meta:控制左侧菜单
    meta: { title: '试题录入', icon: 'el-icon-menu' }
  }, {
    // 默认的子路由
    path: 'list',
    name: 'list',
    component: () =>
      import ('@/views/practice/list'),
    // meta:控制左侧菜单
    meta: { title: '组题列表', icon: 'el-icon-menu' }
  }

  ] }
